package com.bruce.pattern.structural.proxy;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by bruce on 2018/11/8 22:02
 */
@Slf4j
public class OrderServiceImpl implements IOrderService{

    private IOrderDao iOrderDao = new OrderDaoImpl();


    @Override
    public int saveOrder(Order order) {

        log.info("Service层调用Dao层添加Order");

        return iOrderDao.insertOrder(order);
    }
}
